import request from '@/utils/request'

// 查询列表
export function listOrder(query) {
  return request({
    url: '/operation/manage/list',
    method: 'get',
    params: query
  })
}
// 查询列表
export function xList(query) {
  return request({
    url: '/scrap/list',
    method: 'get',
    params: query
  })
}

// 新增
export function addOrder(data) {
  return request({
    url: '/operation/manage/add',
    method: 'post',
    data: data
  })
}
// 新增
export function xAdd(data) {
  return request({
    url: '/scrap/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updateOrder(data) {
  return request({
    url: '/operation/manage/edit',
    method: 'put',
    data: data
  })
}
// 修改
export function xEdit(data) {
  return request({
    url: '/scrap/edit',
    method: 'put',
    data: data
  })
}


// 删除
export function delOrder(id) {
  return request({
    url: '/operation/manage/' + id,
    method: 'delete'
  })
}

export function xDelete(id) {
  return request({
    url: '/scrap/' + id,
    method: 'delete'
  })
}

